malloc_error_break with Facebook Native Ad

2016/11/28
~ 阿亮 ~

I try to implement the Native Ad on Xcode8. I met crash issue. “NativeAdSample(10831,0x1b6871c40) malloc: *** error for object 0x1740b1100: pointer being freed was not allocated”.

Even, I use the “NativeAdSample” example project from Official Facebook iOS SDK. And I get the same issue. After I assign the “PlacementID” and “addTestDevice”, and I click the “Load Native Ad” button. And then it crash.

It’s weird, it crash on iOS10. It show “No fill” on iOS8, and not crash. Verbose log show that crash after “Saved local configuration.”, and “malloc_error_break” break point show it crash on “JavaScriptCore”.

1128_02

 

Finally, I found out that “Safari Setting >> Advanced >> Web Inspector” will cause this issue. Turn it off, and will not malloc error.
1128_03

FBAudienceNetwork (4.17.0) via Cocoapods.
Xcode8.1 on OSX EI Capitan



站內搜尋



本站其他服務

本站其他軟體



  • 臉書粉絲專頁搜尋 (FPSearch)

    不用登入臉書即可搜尋臉書粉絲專頁(臉書粉絲團)所公開的文章。您可以指定特定日期範圍之前的文章,也可設定搜尋粉絲專頁內包含特定關鍵詞的文章。


  • 股海快訊 (iNews123)

    提供特定個股新聞更新推播、股價警示推播、新聞社群分享以及每日個股收盤價等功能的股票App/股市App.


  • 藝文快訊

    讓你可以輕鬆追蹤含有您想要關注關鍵詞的任何藝文活動訊息,只要有最新的資訊,「藝文快訊」即會推播通知給你.


  • 下一班高鐵 (nextTHSR)

    這個 app 只要開啟後,就根據定位幫你過濾出最近高鐵站的時刻表,不用再按任何按鈕了,方便您在很快時間內確定要坐的哪一班高鐵


  • 批踢踢快訊 (pttNews)

    身為鄉民的您,是不是常常覺得現在的批踢踢 (PTT) 閱讀器,明明您就只要看幾個板,都幫您分類好,但不是您要的?甚至您只想關注某個人(或某件事)的消息,卻散布在不同東西,找出來很辛苦? 這個 App 可以解決您這些問題,快來用吧!


  • 下一班火車 (nextRail)

    這個 app 只要開啟後,就根據定位幫你過濾出最近火車站的時刻表,不用再按任何按鈕了,方便您在很快時間內確定要坐的哪一班火車